package com.huawei.appgallery.wishlist.widget;

import android.content.Context;
import android.text.Editable;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.Nullable;
import o.dce.e;
import o.dce.i;

public class DetailDescriptionView extends LinearLayout {
    private TextView ˊ;
    private EditTextWithListView ˋ;
    private View ˎ;
    private int ˏ;
    private RelativeLayout ॱ;

    public DetailDescriptionView(Context context) {
        this(context, null);
    }

    public DetailDescriptionView(Context context, @Nullable AttributeSet attributeSet) {
        this(context, attributeSet, 0);
    }

    public DetailDescriptionView(Context context, @Nullable AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.ˏ = 150;
        ˏ(context);
    }

    private void ˏ(Context context) {
        this.ˎ = LayoutInflater.from(context).inflate(i.ˊॱ, this);
        this.ˋ = (EditTextWithListView) this.ˎ.findViewById(e.ॱˎ);
        this.ˊ = (TextView) this.ˎ.findViewById(e.ˑ);
        this.ॱ = (RelativeLayout) this.ˎ.findViewById(e.ॱᐝ);
        ˏ();
    }

    private void ˏ() {
        this.ˋ.addTextChangedListener(new 2(this));
    }

    public Editable ˎ() {
        return this.ˋ.getText();
    }

    public void setText(String str) {
        if (!TextUtils.isEmpty(str) && this.ˋ != null) {
            this.ˋ.setText(str);
        }
    }
}
